<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs = array(
    'Users' => TreTodayUrl::backendUserUrl()
);

?>
<?php $form = $this->beginWidget('CActiveForm', array(
    'id' => 'banner-form',
    'enableAjaxValidation' => false,
    'htmlOptions' => array(
        'role' => 'form',
        'class' => 'form-horizontal',
        'enctype' => 'multipart/form-data'
    )
)); ?>

<div class="form admin-main-wrapper">
    <div class="block block-themed block-last">
        <div class="block-title">
            <h4></h4>
        </div>
        <div class="block-content">
            <div class="row control-group">
                <div class="control-label"> Nhập ngày</div>
                <div class="controls">
                    <input type="text" size="60" maxlength="255" name="date" value="<?php echo $date ?>">

                    <div> Định dạng năm-tháng-ngày: 0000-00-00</div>
                </div>
            </div>
            <div class="row control-group buttons">
                <div class="controls">
                    <?php echo CHtml::submitButton('Submit', array('class' => 'btn btn-default'));
                    ?>
                </div>
            </div>


            <?php if (isset($model) && count($model) > 0) { ?>
                <table style="width: 400px">
                    <th>
                        Thứ tự
                    </th>
                    <th>
                        User
                    </th>
                    <th>
                        Email
                    </th>

                    <?php foreach ($model as $k => $item) { ?>
                        <tr>
                            <td><?php echo $k + 1 ?></td>
                            <td><?php echo $item['name'] ?></td>
                            <td><?php echo $item['email'] ?></td>
                        </tr>
                    <?php } ?>

                </table>

            <?php } ?>

        </div>
    </div>


</div>

<?php $this->endWidget(); ?>
